package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffConfOptionDto
 * @使用场景
 */
@Data
public class BffConfOptionDto extends PagedDto implements Serializable {

    /**
     * 配置选项ID
     */
    @ApiModelProperty("配置选项ID")
    private String confOptionId;

    /**
     * 配置选项标识
     */
    @ApiModelProperty("配置选项标识")
    private String confOptionCode;

    /**
     * 配置选项名称
     */
    @ApiModelProperty("配置选项名称")
    private String confOptionName;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operationTime;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 配置选项业务描述
     */
    @NotNull(message = "配置选项业务描述不能为空")
    @ApiModelProperty("配置选项业务描述")
    private String confOptionDes;
    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffConfOptionDto that = (BffConfOptionDto) o;
        return confOptionId == that.confOptionId && confOptionCode == that.confOptionCode && confOptionName == that.confOptionName && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && operationTime == that.operationTime && isArchive == that.isArchive && confOptionDes == that.confOptionDes && operateTime == that.operateTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), confOptionId, confOptionCode, confOptionName, subjectLifeCycle, operationInductionId, userId, userFace, idCardName, nickName, operationTime, isArchive, confOptionDes, operateTime);
    }


}
   